
import logging


student = 'lujinhui'
print(student[3:0:-2])

def log_testing():
    #name,acstime, lineno, levelname, message,thread, threadName,process,filename
    format =''
    logging.basicConfig(level=logging.info, filemode='w', filename='./202308.log',format='%(asctime)s - %(pathname)s[line:%(lineno)d] - %(levelname)s: %(message)s')
    logger = logging.getLogger('my_app')
    logging.debug('debug，用来打印一些调试信息，级别最低')
    logging.info('INFO，用来打印一些调试信息，级别最低')

logging.basicConfig(level=logging.DEBUG, filemode='a', filename='./202308.log',format='%(asctime)s - %(pathname)s[line:%(lineno)d] - %(levelname)s: %(message)s')
# logger = logging.getLogger('my_app')my_app
logging.debug('debug，用来打印一些调试信息，级别最低')
logging.info('INFO，用来打印一些调试信息，级别最低')
try:
    a= 1
    logging.warning('WARNINGWARNINGWARNINGWARNINGWARNING WARNING')
except Exception as e:
    logging.debug(e)
print('111')
# q = log_testing()